FROM frolvlad/alpine-java:jdk8-slim

MAINTAINER dataturbine@163.com

EXPOSE 6000

ADD ./target/just-game-task.jar /app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08", "-jar", "app.jar"]

ENV JAVA_OPTS="-Xmx256m -Xms256m -Xmn256m -Xss256K -XX:SurvivorRatio=8 -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -XX:+UseConcMarkSweepGC -XX:ConcGCThreads=4 -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -XX:+DisableExplicitGC -XX:+PrintGC -XX:+PrintGCTimeStamps -Xloggc:./gc.mgRequestLog"

CMD ["--spring.profiles.active=prod"]
